/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_Company_ } from '../models/BaseResponse_Company_';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class CompanyUserControllerService {
    /**
     * getCompany
     * @returns BaseResponse_Company_ OK
     * @throws ApiError
     */
    public static getCompanyUsingGet(): CancelablePromise<BaseResponse_Company_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/companyuser/get/company',
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
    /**
     * getByUserId
     * @param id id
     * @returns BaseResponse_Company_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static getByUserIdUsingPost(
        id?: string,
    ): CancelablePromise<BaseResponse_Company_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/companyuser/getByUserId',
            query: {
                'id': id,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }
}
